﻿using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LimaLims.Application.Service
{
    /// <summary>
    /// 用户认证服务接口
    /// </summary>
    public interface IAuthService
    {
        /// <summary>
        /// 获取验证码
        /// </summary>
        /// <returns></returns>
        dynamic GetCaptcha();

        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        object LoginAsync([FromBody] LoginInput input);
        /// <summary>
        /// 刷新token
        /// </summary>
        /// <param name="accessToken"></param>
        /// <returns></returns>
        public string GetRefreshToken([FromQuery] string accessToken);
        /// <summary>
        /// 获取当前用户信息
        /// </summary>
        /// <returns></returns>
        Task<LoginOutput> GetLoginUserAsync();

        /// <summary>
        /// 登出操作
        /// </summary>
        /// <returns></returns>
        Task LogoutAsync();
    }
}
